<%-- 
    Document   : modificar
    Created on : 11-mar-2012, 22:43:52
    Author     : carlo
--%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style type="text/css">@import "/CPYDFINAL/interfaz/css/redmond.datepick.css";</style> 
        <script src="/CPYDFINAL/interfaz/javascript/jquery-1.7.1.min.js"></script>
        <script src="/CPYDFINAL/interfaz/javascript/jquery.datepick.js"></script>
        <script type="text/javascript" src="/CPYDFINAL/interfaz/javascript/jquery.datepick-es.js"></script>
    </head>
    <body>
        <h1> Modificar Recordatorio </h1>
        <script type="text/javascript">
            $(document).ready(function(){
          
        
                $('#fechaInicio').datepick({ 
                    monthsToShow: 1, showOtherMonths: true, firstDay:0,
                    rangeSelect: false,
                    renderer: $.datepick.weekOfYearRenderer, 
                    onShow: $.datepick.showStatus});

                $('#fechaFin').datepick({ 
                    monthsToShow: 1, showOtherMonths: true, firstDay:0,
                    rangeSelect: false,
                    renderer: $.datepick.weekOfYearRenderer, 
                    onShow: $.datepick.showStatus});            
            
            });
        </script>
        <tiles:insert definition="mensaje"></tiles:insert>
        <html:form action="/modificarRecordatorio?method=save" onsubmit="return this">

            <table>
                <tr>
                    <td>Fecha de inicio:</td>    
                    <td>    
                        <input name="fechaInicio" type="text" id="fechaInicio"/>
                        <html:text name="recordatorio" property="fechaInicio" disabled="true"></html:text>
                        <html:hidden name="recordatorio" property="fechaInicio"/>
                    </td>
                </tr>
                <tr>
                    <td>Fecha de fin:</td>    
                    <td>
                        <input name="fechaFin" type="text" id="fechaFin" />
                        <html:text name="recordatorio" property="fechaFin" disabled="true"></html:text>
                        <html:hidden name="recordatorio" property="fechaFin"/>
                    </td>
                </tr>
                <tr>
                    <td>Nombre Recordatorio:</td>    
                    <td>    
                        <html:text name="recordatorio" property="nombre" disabled="true"/>
                        <html:hidden name="recordatorio" property="nombre"/>

                    </td>
                </tr>
                <tr>
                    <td>Unidad:</td>    
                    <td>    
                        <html:text name="recordatorio" property="unidad" disabled="true"/>
                        <html:hidden name="recordatorio" property="unidad"/>

                    </td>
                </tr>
                <tr>
                    <td>Matriz:</td>    
                    <td>    
                        <html:text name="recordatorio" property="matriz" disabled="true"/>
                        <html:hidden name="recordatorio" property="matriz"/>

                    </td>
                </tr>
            </table>
            <div class="buttons">
                <button type="submit" class="positive" style="margin-left: 3%; 
                        margin-top: 3%;">
                    <img src="interfaz/images/agregar.png" alt=""/>:
                    <bean:message key="boton.modificar" />
                </button>
            </div>
        </html:form>
    </body>    
</html>

